﻿using System.Configuration;
using Ycg.Logging.Configuration;
using Ycg.Logging.Targets;

namespace Ycg.Logging
{
    public class Logger
    {
        public static void Write(string message)
        {
            LogConfigurationManager.LoadAllConfigurationInfos();
            TargetFactory.GetInstance(TargetType.File).Write(new LogInfo { Message = message });
        }
    }
}
